package org.bitoy.shimmer.config.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Aspect
@Component
@Slf4j
public class DemoAspect {
    @Pointcut("@annotation(org.bitoy.shimmer.common.annotation.Resubmit)")
    public void resubmitPointcut() {}

    /**
     * 限制重复提交
     */
    @Around(value = "resubmitPointcut()")
    public Object resubmitAround(ProceedingJoinPoint joinPoint) {
        return null;
    }

}
